<html><!-- InstanceBegin template="/Templates/_Admin_Template.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<!-- InstanceBeginEditable name="doctitle" -->
<title>TCedit 测试用例编写工具 - 产品管理</title>
<!-- InstanceEndEditable -->
<link rel="shortcut icon" href="favicon.ico">
<link href="/css/common.css" rel="stylesheet" type="text/css">
<script src="/js/prototype.js"></script>
<script src="/js/common.js"></script>
<!-- InstanceBeginEditable name="head" --><!-- InstanceEndEditable -->
<script>
function doAction(action){
  if (action == "Search") {
    document.formData.action = "/admin/productList.jspx?action=search";
  } else if (action == "create") {
    window.location.href="/admin/product.jspx"
  }
}
</script>
</head>

<body>
<!-- InstanceBeginEditable name="MainContent" -->
<table width="99%" align="center" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="100%" valign="top">
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <form action="" method="post" enctype="multipart/form-data" name="formData" id="formData">
        <tr>
          <td >
          产品名称：<input name="sName" type="text" class="text" id="sName" style="width:150px;" value="$!{sName}" maxlength="40" />
          产品描述：<input name="sDescribing" type="text" class="text" id="sDescribing" style="width:200px;" value="$!{sDescribing}" maxlength="40" />
          </td>
        </tr>
        <tr>
          <td align="right">
          <input name="SubmitSearch" type="submit" class="button" id="SubmitSearch" value="查询" onClick="doAction('Search')" />
          <input name="SubmitCreate" type="button" class="button" id="SubmitCreate" value="新增" onClick="doAction('create')" />
          </td>
        </tr>
        <tr>
          <td>&nbsp;</td>
          <td></td>
        </tr>
        </form>
        <tr>
          <td>#pagination()</td>
        </tr>
      </table>
      <table width="100%" border="0" cellspacing="0" cellpadding="3">
        <tr>
          <td width="30%" bgcolor="#dedeef"><strong>产品名</strong></td>
          <td width="35%" bgcolor="#dedeef"><strong>产品描述</strong></td>
          <td width="20%" bgcolor="#dedeef" align="center"><strong>锁定</strong></td>
          <td width="15%" bgcolor="#dedeef" align="center"><strong>操作</strong></td>
        </tr>
#foreach($a in $product)
        <tr>
          <td>$!{a.name}</td>
          <td>$!{a.describing}</td>
          <td align="center">
            #if(${a.locked})
              Yes
            #end
          </td>
          <td align="center"><a href="/admin/product.jspx?action=query&id=${a.id}">修改</a> <a href="/admin/product.jspx?action=delete&id=${a.id}" onclick= "return   confirm( '是否确定要删除？ ')">删除</a></td>
        </tr>
#end
      </table>
      <table width="100%" border="0" cellspacing="0" cellpadding="3">
        <tr>
          <td>#pagination()</td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<!-- InstanceEndEditable -->
</body>
<!-- InstanceEnd --></html>
